Skip to content

Limit to 3 decimals (fixes #14773)#14831

Merged
dgomes merged 1 commit intodevfrom
sim-sensor
Jun 5, 2018
Merged

Limit to 3 decimals (fixes #14773)#14831
dgomes merged 1 commit intodevfrom
sim-sensor

Conversation

@fabaff
Copy link
Copy Markdown
Member

@fabaff fabaff commented Jun 5, 2018

Description:

Limit the state to 3 decimals as discussed in #14773.

Related issue (if applicable): fixes #14773

Pull request in home-assistant.github.io with documentation (if applicable): home-assistant/home-assistant.io#5499

Example entry for configuration.yaml (if applicable):

sensor:
  - platform: simulated
    name: Simulated relative humidity
    unit: '%'
    amplitude: 0 # Turns off the periodic contribution
    mean: 50
    spread: 10
    seed: 999

Checklist:

  • The code change is tested and works locally.
  • Local tests pass with tox. Your PR cannot be merged unless tests pass

If user exposed functionality or configuration variables are added/changed:

@dgomes dgomes merged commit 4bccb0d into dev Jun 5, 2018
@fabaff fabaff deleted the sim-sensor branch June 10, 2018 08:30
@home-assistant home-assistant locked and limited conversation to collaborators Dec 10, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Simulated sensor

4 participants